Ucfirst ($STR)strconverts the first character (if the first character is a letter) to an uppercase letter, and returns the string.Source is located in Ext/standard/string.c1 /*{{{ php_ucfirst2 Uppercase the first character of the word in a native
Instance
Convert the first character of "Hello" to uppercase:
Definition and usage
The Ucfirst () function converts the first character in a string to uppercase.
Related functions:
Lcfirst ()-Converts the first character in a string to
Use PHP to convert an underscore-delimited string into a camel-named style and capitalize the first letter after the underscore
Recent projects using the Symfony framework, this framework for the operation of the database in this team using ORM to
As the name implies, loaders are loaded elements, when using CI, often loaded with:
$this->load->library ()$this->load->view ()$this->load->model ()$this->load->database ()$this->load->helper ()$this->load->config ()$this->load->add_package_path ()
/* Chinese processing tool functions
---space---
String Gbspace (String)---------spaces between each text
String Gbunspace (String)-------white space between each text
String Clear_space (String)-------used to clear extra
Put these two files under the Nbproject folder in the root directory of the project file, run index.php such as: http://localhost/your CI directory/nbproject/index.php, and then restart NetBeans. Try writing $this-> to see what's going on back there!
I have read about it .. I felt so bad that I didn't continue reading it .. Index. php Local inclusion $ Url = $ _ GET; // GET all parsed URLs jeffxie $ Mod = $ url ["view"]; If ($ mod) { If ($ mod = 'uid') {// friends Weibo opens in uid/...
The following summarizes several character functions in PHP, Summary: 1) Ucfirst the first letter into uppercase, such as $string = "This is my web development blog"; echo Ucfirst ($string); Output:this is my web Development blog 2) Lcfirst, the
So that the development and maintenance of web systems more convenient, thereby effectively saving human and material resources, by more and more enterprises of the green squint.
The template engine is an important method of the MVC pattern
So that the development and maintenance of web systems more convenient, thereby effectively saving human and material resources, by more and more enterprises of the green squint.
The template engine is an important method of the MVC pattern
1, character comparison:
Comparisons apply to comparing whether a character is case-sensitive:
Program code
$class = ' RFDSAFFSADFSADFASDFSADF ';$type = ($class [0]Echo$type;
Program code
Echo (' Uppercase A: ');Echoord (' A ');Echo (' ');Echo
The following is a summary of several character functions in php. The following is a summary of several character functions in PHP: 1) ucfirst converts the initial character to uppercase, for example, $ stringthisismywebdevelopmentblog; echoucfirst (
-distributor system
">
">
css/.css">
images/favicon.ico" type="image/x-icon">
The top of the $vd[' content ' where it is defined, not found, where to find
Reply to discussion (solution)
You should use a frame, the $VD passed
Converts the first letter of each word to uppercase: Ucwords ()Capitalize the first letter of a word: Ucfirst ()First letter to lowercase: lcfirst ()Capitalize all letters: Strtoupper ()
Example
The code is as follows
Copy Code
Php converts the initial character of a string to uppercase. Php: how to convert the character string to uppercase/Lowercase. This article describes how to convert the character string to uppercase/lowercase in php, tips for using ucfirst and
In php, the uppercase/Lowercase conversion functions include: strtolower, strtoupper, ucfirst, ucwords, and so on, this article will introduce how to use these uppercase/Lowercase conversion functions.
1. convert string to lowercase
Strtolower ():
Ucwords ();
Strtoupper ();
Ucfirst ()
Strtolower ();
PHP ucwords () functionPHP String functionInstanceConvert the first character of each word to uppercase:Running an instanceDefinition and usageThe Ucwords () function converts the
Example 1, the first letter of each word is converted to uppercase: Ucwords ()
$foo = ' Hello world! ';
$foo = Ucwords ($foo); Hello world!
$bar = ' HELLO world! ';
$bar = Ucwords ($bar); HELLO
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.